package com.hjx.movie.persistence.system.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * (IvyCinemaMovieShow)实体类
 *  电影播放时间表
 * @author makejava
 * @since 2020-12-22 14:41:02
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class IvyCinemaMovieShow implements Serializable {
    private static final long serialVersionUID = 850704068688180474L;
    @TableId
    private Long movieShowId;
    //播放日期
    private String showDate;
    //播放时间
    private String showTime;
    //播放日期和时间
    private LocalDateTime showDateTime;
    //开始时间
    private String startTime;
    //结束时间
    private String endTime;
    //播放影厅
    private Long cinemaHallId;
    //播放影院
    private Long cinemaId;
    //播放的电影
    private Long movieId;
    //放映类型
    private Integer showType;
    //折后价
    private BigDecimal newPrice;
    //原价
    private BigDecimal oldPrice;
    //mybatis plus设置逻辑删除 0为未删除 1为删除
    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
